package com.itheima.mapper;

import com.itheima.pojo.dto.orderDto.OrderDetails;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
/**
 * @author tcotk
 */
@Mapper
public interface OrderDetailsMapper {
    /**
     * 根据订单id查询隶属菜品
     * @param id orderId
     * @return OrderDetails
     */
    List<OrderDetails>selectById(String id);

    /**
     * 添加订单隶属的菜品
     * @param orderDetails  OrderDetails
     * @return int
     */
    int add(OrderDetails orderDetails);
}
